<%@page import="com.niit.utils.Page"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!--招聘模块管理-->
<div class="main_tag">招聘模块管理>管理招聘</div>
<div class="sysm1_udiv">
	<c:choose>
		<c:when test="${empty(page.list)}">还没有发布招聘信息哦！！！</c:when>
		<c:otherwise>
			<table class="sysm1_utable">
				<tr>
					<th style="width: 0;">编号</th>
					<th style="width: 25%;">发布日期</th>
					<th style="width: 25%;">标题</th>
					<th style="width: 20%;">招聘企业</th>
					<th width="10%">点击数</th>
					<th>管理</th>
				</tr>
				<c:forEach var="job" items="${page.list}">
					<tr>
						<td>${job.id}</td>
						<td>${job.time}</td>
						<td>${job.title}</td>
						<td>${job.enterprise}</td>
						<td>${job.click}</td>
						<td>
							<a href="javascript:void(0);" onclick="del(this);"><i class="icon-trash"></i></a>
						</td>
					</tr>
				</c:forEach>
			</table>
			<jsp:include page="pager.jsp"></jsp:include>
		</c:otherwise>
	</c:choose>
</div>
<Script>
	function del(e){
		var id = e.parentNode.parentNode.children[0].innerHTML;
		$.post("/qiuzhi/DeleteJobController",{id:id},function(data){
			alert(data);
			e.parentNode.parentNode.remove();
		});
				
	}
	function update(elementId){
		alert("update");
	}
	$(document).ready(function() {
		$("table tr").mouseover(function() {
			$(this).css("background", "#F3F3F3");
		});
		$("table tr").mouseout(function() {
			$(this).css("background", "");
		});
	});
</Script>